package com.ruoyi.user.mapper;

import java.util.List;
import com.ruoyi.user.domain.WalletTransactionLog;

/**
 * 零钱流水Mapper接口
 * 
 * @author ruoyi
 * @date 2025-10-21
 */
public interface WalletTransactionLogMapper 
{
    /**
     * 查询零钱流水
     * 
     * @param txnId 零钱流水主键
     * @return 零钱流水
     */
    public WalletTransactionLog selectWalletTransactionLogByTxnId(String txnId);

    /**
     * 查询零钱流水列表
     * 
     * @param walletTransactionLog 零钱流水
     * @return 零钱流水集合
     */
    public List<WalletTransactionLog> selectWalletTransactionLogList(WalletTransactionLog walletTransactionLog);

    /**
     * 新增零钱流水
     * 
     * @param walletTransactionLog 零钱流水
     * @return 结果
     */
    public int insertWalletTransactionLog(WalletTransactionLog walletTransactionLog);

    /**
     * 修改零钱流水
     * 
     * @param walletTransactionLog 零钱流水
     * @return 结果
     */
    public int updateWalletTransactionLog(WalletTransactionLog walletTransactionLog);

    /**
     * 删除零钱流水
     * 
     * @param txnId 零钱流水主键
     * @return 结果
     */
    public int deleteWalletTransactionLogByTxnId(String txnId);

    /**
     * 批量删除零钱流水
     * 
     * @param txnIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWalletTransactionLogByTxnIds(String[] txnIds);

    /**
     * 根据用户ID和钱包ID查询零钱流水列表
     * 
     * @param customerId 用户ID
     * @param walletId 钱包ID
     * @return 零钱流水集合
     */
    public List<WalletTransactionLog> selectWalletTransactionLogByCustomerIdAndWalletId(String customerId, String walletId);
}
